package com.huatai.datacenter.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * @author gusiyi
 * @version 1.0
 * @className CodeEntity
 * @description 描述：
 * @date 2023/5/26 10:46
 */
@Data
@TableName("tb_code")
@ApiModel
@JsonInclude(JsonInclude.Include.NON_NULL)
public class CodeEntity {

	@TableId(value = "id",type = IdType.ASSIGN_ID)
	@ApiModelProperty("数据模型id")
	private Long id;

	@ApiModelProperty(value = "类型",required = true)
	private String type;

	@ApiModelProperty("类型名称")
	private String typeName;

	@ApiModelProperty("编码")
	private Integer num;

	@ApiModelProperty("编码名称")
	private String name;

	@ApiModelProperty("排序")
	private Integer sorted;

	@ApiModelProperty("父编码")
	private Integer parentNum;

	@ApiModelProperty("扩展功能")
	private String extend;

	@ApiModelProperty("备注/描述")
	private String remark;

	@ApiModelProperty("删除标志")
	private Boolean deleted = Boolean.FALSE;

	@TableField(exist = false)
	@ApiModelProperty("当前页")
	private Integer pageIndex;

	@TableField(exist = false)
	@ApiModelProperty("显示条数")
	private Integer pageSize;

}
